package com.wk.starter_test.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wk.swagger.ApiNotesExt;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(value="IndexController",tags={"首页操作接口"})
public class IndexController {

	@ApiOperation(value="获取hello world ")
	@RequestMapping(value="/getHello",method = RequestMethod.GET)
	//@ApiImplicitParams(
	//	@ApiImplicitParam(name="queryUserId",value="用户ID",dataType="Long",required = false)
	//)
	@ApiNotesExt(value= {
			@ApiImplicitParam(name="currentPageIndex",value="当前第几页,从1开始 ",required=true),
			@ApiImplicitParam(name="params.queryCustomerId",value="客户id",required=true)
	})
	public String getHello(){
		return "hello world";
	}
}

